package com.example.basic.web.service.transTask;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.basic.core.foreignData.ForeignDataInParam;
import com.example.basic.core.foreignData.HoistDataInParam;
import com.example.basic.web.request.InterveneTaskRequest;
import com.example.basic.web.response.TaskRemainsResponse;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author suntt
 * @since 2019-10-29
 */
public interface TransTaskService {

    Boolean sendTransTask(String documentNo) throws IOException;

    Boolean executeBlockTask(String deviceCode) throws IOException;

    Boolean taskFinish(String documentNo);

    Boolean singleTaskFinish(ForeignDataInParam foreignDataInParam) throws IOException;

    /**
     * 流程干预
     * @param interveneTaskRequest
     * @return
     */
    Boolean interveneTask(InterveneTaskRequest interveneTaskRequest);

    /**
     * 遗体信息列表
     * @param searchParam
     * @param sex
     * @param cremation
     * @param page
     * @param size
     * @return
     */
    IPage<TaskRemainsResponse> remainsTaskList(String searchParam, String sex, String cremation, Integer page, Integer size);

    /**
     * 更新提升机状态
     * @param hoistDataInParam
     * @return
     */
    Boolean modifyHoistStatus(HoistDataInParam hoistDataInParam);
}